home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d13 / q_aparad.arc / PAL.QA < prev    next >
Text File  |  1991-03-13  |  5KB  |  199 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.               PARADOX COMMON QUESTIONS AND ANSWERS
  8.  
  9.  
  10. PAL
  11.  
  12.    1.  Why do I get "Out of stack space" error?
  13.  
  14.        You are doing a  recursive  call in your script or in your
  15.        procedures.  Somewhere in your scripts, script or proc "A"
  16.        calls to script or proc  "B", then script "B" calls script
  17.        "A"  again.  Script "A" is now  open  twice  at  different
  18.        places.    This  can easily be eliminated by using a WHILE
  19.        loop  around the menu that has script  "B"  as  a  choice.
  20.        This will allow script  "B"  to  return  to script "A" and
  21.        loop to its original position.
  22.  
  23.  
  24.    2.  How can I get the cursor to go from a particular  field to
  25.        another particular field in a WAIT record?
  26.  
  27.        In your UNTIL statement in the WAIT RECORD,  you  can trap
  28.        for  the  Enter  key (keycode 13) and  can  intercept  the
  29.        natural movement of the cursor.   Then, send the cursor to
  30.        any position you  wish with the MOVETO[Fieldname] command.
  31.        Use a WHILE loop around the WAIT RECORD so you  can return
  32.        to the WAIT state.
  33.  
  34.  
  35.    3.  How can  I  get  my  program to wait for a user to input a
  36.        value?
  37.  
  38.        Use the Accept command.  The proper syntax is:
  39.        @ 0,0 ?? "Input your name please:"
  40.        @ 1,0 ?? "Press Enter when done."
  41.        @ 0,25
  42.                        Accept "A10"
  43.                        TO myname
  44.                        Message "Your name is "+myname
  45.                        sleep 1000
  46.  
  47.  
  48.    4.  Why won't my query with tilde(~)  variables  find anything
  49.        when I use wildcard operators?
  50.  
  51.        The tilde variable is interpreted as a  literal character.
  52.        Instead of using tilde variables  in  your  QUERY ENDQUERY
  53.        and a DO_IT!, do a  MOVETO[Fieldname]  after  the ENDQUERY
  54.        and  use  the  TYPEIN  command  with the variable.    This
  55.        simulates typing in from the  keyboard.  Do a DO_IT! after
  56.        the TYPEIN variablename.
  57.  
  58.  
  59.    5.  When I  use AUTOLIB, Paradox never finds the procedures in
  60.        the second library.  What causes this?
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.  
  71.  
  72.  
  73.        Check to see if there is a space between the comma and the
  74.        second library name in the string.
  75.        Use:
  76.           Autolib = "utill,util2,main"
  77.        Not:
  78.           Autolib = "utill, util2, main"
  79.  
  80.  
  81.    6.  At what value should I set Setswap?
  82.  
  83.        Start with  Setswap  set  at  1/2  your  available virtual
  84.        memory.  You can find this by doing an <Alt><=> in Paradox
  85.        before starting your  program.   If the kleftgetm() = 100,
  86.        then set Setswap to 50,000.   You can adjust it throughout
  87.        your program if you need to.  The lower  the  number,  the
  88.        less  room  for  table images and queries and the more for
  89.        procedures.
  90.  
  91.  
  92.    7.  I am always running out of memory, how can I avoid this?
  93.  
  94.        There are several steps to take to eliminate this problem.
  95.        Always  use procedures instead of playing linked  scripts.
  96.        Keep your procedures small (2K or less) and use Libraries.
  97.        Use Autolib to load the procedures instead of loading each
  98.        procedure manually.  Use Setswap.  Be sure not to  run any
  99.        memory   resident  programs  while  your  application   is
  100.        running.  Check in your AUTOEXEC.BAT and  CONFIG.SYS files
  101.        to ensure that no unnecessary files are being loaded.
  102.  
  103.  
  104.    8.  How can I get a variable into my report?
  105.  
  106.        Have your script  go  into the report generator itself and
  107.        use the TYPEIN command to place the variable on the report
  108.        design.  Print the report from the generator so you do not
  109.        save the report with the variable in it.
  110.  
  111.  
  112.    9.  Why doesn't my  WAIT  TABLE  or  WAIT RECORD go to all the
  113.        fields on a multi-table form?
  114.  
  115.        It actually does but only within the fields of the current
  116.        Table.  Remember, you  have  a  MULTI-TABLE  form up.  You
  117.        need  to  trap for the <F3> or  <F4>  key  in  your  UNTIL
  118.        statement and  explicitly move to those other tables.  Use
  119.        a WHILE loop to return to your WAIT state.
  120.  
  121.  
  122.   10.  When I view a table then place a menu, why can't I see the
  123.        table?
  124.  
  125.  
  126.  
  127.  
  128.  
  129.  
  130.                               - 2 -
  131.  
  132.  
  133.  
  134.  
  135.  
  136.  
  137.  
  138.  
  139.        Your PAL canvas is covering up the table.  Use ECHO NORMAL
  140.        ECHO OFF after the view but before your menu and  you will
  141.        see the table.
  142.  
  143.  
  144.  
  145.  
  146.  
  147.  
  148.  
  149.  
  150.  
  151.  
  152.  
  153.  
  154.  
  155.  
  156.  
  157.  
  158.  
  159.  
  160.  
  161.  
  162.  
  163.  
  164.  
  165.  
  166.  
  167.  
  168.  
  169.  
  170.  
  171.  
  172.  
  173.  
  174.  
  175.  
  176.  
  177.  
  178.  
  179.  
  180.  
  181.  
  182.  
  183.  
  184.  
  185.  
  186.  
  187.  
  188.  
  189.  
  190.  
  191.  
  192.  
  193.  
  194.  
  195.  
  196.                               - 3 -
  197.  
  198.  
  199.